package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 期中时间设置
 * </p>
 *
 * @author hpiggy
 * @since 2024-11-21
 */
@TableName("midterm_date_set")
@ApiModel(value = "MidtermDateSet对象", description = "期中时间设置")
@Data
public class MidtermDateSet implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Integer yearPart;

    private Integer quarterNum;

    @ApiModelProperty("0少儿，1小学，2初中，3高中")
    private Integer gradeSection;

    @ApiModelProperty("课次")
    private Integer lessonNum;

    @ApiModelProperty("期中日期")
    private LocalDate midtermDate;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;


    @TableField
    private Integer deleted;
}
